package com.hutao.sso.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hutao.sso.service.baseInfo_remote.BasicDataService;
import com.hutao.sso.util.ChacheManager;
import com.hutao.sso.util.Constant;

@Controller
public class PageController {
	@Autowired
	private BasicDataService basicDataService;
	
	@Value("${config.resource.core.url}")
	private String configResourceCoreUrl;

	@GetMapping("/index")
	public String index() {
		return "/index";
	}
	
	@GetMapping("/user_manage/user_manage")
	public String userManage(Map<String, Object> resultMap) {
		return "/user_manage/user_manage";
	}
	
	@GetMapping("/user_manage/role_manage")
	public String userRole() {
		return "/user_manage/role_manage";
	}
	
	@RequestMapping("/{folder}/{page}")
	public String page(@PathVariable String folder,@PathVariable String page, Map<String, Object> map){
		return folder+"/"+page;
	}
	
	
	
	
}
